<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page import="com.psl.model.userlogin" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%--<%--%>
    <%--userlogin userinfo = (userlogin) session.getAttribute("user");--%>
    <%--if (userinfo == null) {--%>
        <%--response.sendRedirect("/login.do");--%>
    <%--}%>--%>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <link href="/assets/css/text.css" rel="stylesheet" type="text/css">
    <link href="/assets/css/main.css" rel="stylesheet" type="text/css">
    <link href="/assets/css/content.css" rel="stylesheet" type="text/css">
    <script language="javascript" src="/assets/js/common.js"></script>
    <script language="javascript" src="/assets/js/general.js"></script>
    <script language="JavaScript" type="text/JavaScript">
    </script>
    <style>
        #title {
            width: 92%;
            border: 0px;
            margin-bottom: 10px;
        }

        #title td {
            text-align: center;
            height: 20px;
            line-height: 150%
        }

        #title div {
            background-image: url(/assets/img/dot_02.gif);
            background-position: left top;
            background-repeat: no-repeat;
            margin: 0 auto;
            padding-left: 20px;
            text-align: left;
            width: 10%;
            font-size: 15px;
            font-weight: bold;
            color: #CC0000;
            letter-spacing: 2px;
        }
    </style>
</head>
<body>

<table cellspacing="0" cellpadding="0" id="title" align="center">
    <tbody>
    <tr>
        <td nowrap="nowrap">
            <div>成品库存审批</div>
        </td>
    </tr>
    </tbody>
</table>


<table cellpadding="0" cellspacing="0" class="datalist" align="center">
    <tbody>
    <tr>
        <td align="center" colspan="14"></td>
    </tr>
    <tr>
        <td height="25" colspan="13" align="center"></td>
    </tr>
    <tr>
        <th align="center" colspan="1">序号</th>
        <th height="25" align="center">铸件/配件编号</th>
        <th height="25" align="center">铸件/配件名称</th>
        <th align="center">规格</th>
        <th align="center">数量</th>
        <th align="center">商标</th>
        <th align="center">压力</th>
        <th align="center">入库日期</th>
        <th align="center">送货人员</th>
        <th align="center">凭条编号</th>
        <th align="center">状态</th>
        <th align="center">操作</th>
    </tr>
    <form name="form" method="post" action="/savedj.do">
        <c:forEach items="${finish}" var="p">
            <tr>
                <td>
                    <input name="h_id" type="hidden" value="${p.h_id}"/>${p.h_id}
                </td>
                <td height="25" align="center">${p.h_no}
                </td>
                <td height="25" align="center">${p.h_name}
                </td>
                <td height="25" align="center">${p.h_size}
                </td>
                <td height="25" align="center">${p.h_num}
                </td>
                <td height="25" align="center">${p.h_r}
                </td>
                <td height="25" align="center">${p.h_n}
                </td>
                <td height="25" align="center">${p.h_date}
                </td>
                <td height="25" align="center">${p.h_people}
                </td>
                <td height="25" align="center">${p.h_ticketno}</td>
                <td height="25" align="center">
                    <c:if test="${p.status==0}">
                        待审核
                    </c:if>
                    <c:if test="${p.status==1}">
                        审核通过
                    </c:if>
                    <c:if test="${p.status==2}">
                        退回修改
                    </c:if>
                </td>
                <td height="25" align="center">
                    <c:if test="${p.status==0}">
                        <a href="fpspass.do?h_id=${p.h_id}"><span style="color: #D18C0C">审核通过</span></a>
                        <a href="fpsdown.do?h_id=${p.h_id}"><span style="color: #00CC99">审核不通过</span></a>
                    </c:if>
                </td>
            </tr>
        </c:forEach>
    </form>
    </tbody>
</table>
</body>
</html>